<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ page import="java.util.*"%>
<%@ page import="com.hilaver.dzmis.Constants"%>
<%@ page import="com.hilaver.dzmis.service.impl.CtServiceImpl"%>
<%@ page import="com.hilaver.dzmis.service.impl.ProductQualityServiceImpl"%>
<%@ page import="com.hilaver.dzmis.procurement.ProductQuality"%>
<%@ page import="com.hilaver.dzmis.service.impl.I18nServiceImpl"%>
<%@ page import="com.hilaver.dzmis.util.StringUtils"%>
<%
	Integer id = Integer.parseInt(request.getParameter("id"));
	CtServiceImpl cs = new CtServiceImpl();
	ProductQualityServiceImpl pqs = new ProductQualityServiceImpl();
	I18nServiceImpl i18n = new I18nServiceImpl();
	Locale locale = (Locale) request.getSession().getAttribute(
			Constants.SESSION_LOCALE);
	pqs.setLocale(locale);
	ProductQuality pq = pqs.getObj(id);
	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0"><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> 
<link rel="stylesheet" type="text/css" href="../../styles/dzbase.css" />
<title><%=pq.getProductOrderItem().getProductIdentification().getOrderNumber()%>-
<%=pq.getProductOrderItem().getProductIdentification().getReference()%>-
<%=pq.getProductOrderItem().getColorNumber()%>-
<%=i18n.getShortMessage(locale, "ui.quality.report") %></title>
</head>
<body>
<table cellspacing="0" id="the-table" style="width: 100%;">
<tr>
	<td colspan="12" style="background:#eeeeee;text-align: center; font-weight: bold;">
		<%=pq.getProductOrderItem().getProductIdentification().getOrderNumber()%>-
		<%=pq.getProductOrderItem().getProductIdentification().getReference()%>-
		<%=pq.getProductOrderItem().getColorNumber()%>--
		<%=pq.getProductOrderItem().getProductIdentification().getPatronageNumer()%>-
		<%=i18n.getShortMessage(locale, "ui.quality.report") %>
	</td>
</tr>
	<tr>
		<td>
			&nbsp;
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=i18n.getShortMessage(locale, "ui.quality.date") %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=StringUtils.toString(pq.getCreateDate()) %>
		</td>
		<td colspan="7">
			&nbsp;
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=i18n.getShortMessage(locale, "ui.reference.reference") %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getProductOrderItem().getProductIdentification().getReference() %>
		</td>
	</tr>
	<tr>
		<td>
			&nbsp;
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=i18n.getShortMessage(locale, "ui.quality.person") %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getChecker() %>
		</td>
		<td colspan="7">
			&nbsp;
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=i18n.getShortMessage(locale, "ui.order.color") %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getProductOrderItem().getColorNumber() %>
		</td>
	</tr>
	<tr>
		<td colspan="10">
		</td>
		<td style="text-align: center; font-weight: bold;color: red;">
			<%=i18n.getShortMessage(locale, "ui.quality.class") %>
		</td>
		<td style="text-align: center; font-weight: bold;color: red;">
			<%=pq.getArtClass() %>
		</td>
	</tr>
	<tr>
		<td colspan="2" rowspan="2">
			&nbsp;
		</td>
		<td rowspan="2" style="text-align: center; font-weight: bold;">
			<%=i18n.getShortMessage(locale, "ui.productidentification.ordernumber") %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			S
		</td>
		<td style="text-align: center; font-weight: bold;">
			M
		</td>
		<td style="text-align: center; font-weight: bold;">
			L
		</td>
		<td style="text-align: center; font-weight: bold;">
			XL
		</td><td style="text-align: center; font-weight: bold;">
			XXL
		</td>
		<td style="text-align: center; font-weight: bold;">
			XXXL
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=i18n.getShortMessage(locale, "message.list.total") %>
		</td>
		<td rowspan="2" colspan="2">
			&nbsp;
		</td>
	</tr>
	<tr>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getProductOrderItem().getAmountS() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getProductOrderItem().getAmountM() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getProductOrderItem().getAmountL() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getProductOrderItem().getAmountXl() %>
		</td><td style="text-align: center; font-weight: bold;">
			<%=pq.getProductOrderItem().getAmountXxl() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getProductOrderItem().getAmountXxxl() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getProductOrderItem().getTotal() %>
		</td>
	</tr>
	<tr>
		<td style="background:#eeeeee;text-align: center; font-weight: bold;" colspan="12">
			<%=i18n.getShortMessage(locale, "ui.quality.relatedfiles") %>
		</td>
	</tr>
	<tr>
		<td style="text-align: center; font-weight: bold;">
			GC
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=i18n.getShortMessage(locale, "ui.quality.colorcard") %>
		</td>
		<td style="font-weight: bold;" colspan="10">
			<%=pq.getColorCard() %> 
		</td>
	</tr>
	<tr>
		<td style="text-align: center; font-weight: bold;">
			CDC
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=i18n.getShortMessage(locale, "ui.quality.packagerequirement") %>
		</td>
		<td style="font-weight: bold;" colspan="10">
			<%=pq.getPackageRequirement() %> 
		</td>
	</tr>
	<tr>
		<td style="text-align: center; font-weight: bold;">
			FCA
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=i18n.getShortMessage(locale, "ui.quality.class") %>
		</td>
		<td style="font-weight: bold;" colspan="10">
			<%=pq.getArtClass() %> 
		</td>
	</tr>
	<tr>
		<td colspan="12">
		&nbsp;
		</td>
	</tr>
	<tr>
		<td colspan="2">
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=i18n.getShortMessage(locale, "ui.quality.howto") %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			S
		</td>
		<td style="text-align: center; font-weight: bold;">
			M
		</td>
		<td style="text-align: center; font-weight: bold;">
			L
		</td>
		<td style="text-align: center; font-weight: bold;">
			XL
		</td>
		<td style="text-align: center; font-weight: bold;">
			XXL
		</td>
		<td style="text-align: center; font-weight: bold;">
			XXXL
		</td>
		<td style="text-align: center; font-weight: bold;" colspan="3">
			<%=i18n.getShortMessage(locale, "message.edit.comment") %>
		</td>
	</tr>
	<tr>
		<td colspan="2">
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=i18n.getShortMessage(locale, "ui.quality.checkedquantity") %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getAmountS() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getAmountM() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getAmountL() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getAmountXl() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getAmountXxl() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getAmountXxxl() %>
		</td>
		<td style="text-align: center; font-weight: bold;" colspan="3">
			<%=pq.getAmountComment() %>
		</td>
	</tr>
	<tr>
		<td style="text-align: center; font-weight: bold;" colspan="2">
			C.1
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=i18n.getShortMessage(locale, "ui.order.color") %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC1S() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC1M() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC1L() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC1Xl() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC1Xxl() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC1Xxxl() %>
		</td>
		<td style="text-align: center; font-weight: bold;" colspan="3">
			<%=pq.getC1Comment() %>
		</td>
	</tr>
	<tr>
		<td style="text-align: center; font-weight: bold;" colspan="2">
			C.2
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=i18n.getShortMessage(locale, "ui.quality.appearance") %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC2S() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC2M() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC2L() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC2Xl() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC2Xxl() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC2Xxxl() %>
		</td>
		<td style="text-align: center; font-weight: bold;" colspan="3">
			<%=pq.getC2Comment() %>
		</td>
	</tr>
	<tr>
		<td style="text-align: center; font-weight: bold;" colspan="2">
			C.3
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=i18n.getShortMessage(locale, "ui.quality.touch") %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC3S() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC3M() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC3L() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC3Xl() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC3Xxl() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC3Xxxl() %>
		</td>
		<td style="text-align: center; font-weight: bold;" colspan="3">
			<%=pq.getC3Comment() %>
		</td>
	</tr>
	<tr>
		<td style="text-align: center; font-weight: bold;" colspan="2">
			C.4
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=i18n.getShortMessage(locale, "ui.quality.measure") %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC4S() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC4M() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC4L() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC4Xl() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC4Xxl() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC4Xxxl() %>
		</td>
		<td style="text-align: center; font-weight: bold;" colspan="3">
			<%=pq.getC4Comment() %>
		</td>
	</tr>
	<tr>
		<td style="text-align: center; font-weight: bold;" colspan="2">
			C.5
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=i18n.getShortMessage(locale, "ui.quality.packagerequirement") %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC5S() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC5M() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC5L() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC5Xl() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC5Xxl() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC5Xxxl() %>
		</td>
		<td style="text-align: center; font-weight: bold;" colspan="3">
			<%=pq.getC5Comment() %>
		</td>
	</tr>
	<tr>
		<td style="text-align: center; font-weight: bold;" colspan="2">
			C.6
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=i18n.getShortMessage(locale, "ui.quality.weight") %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC6S() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC6M() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC6L() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC6Xl() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC6Xxl() %>
		</td>
		<td style="text-align: center; font-weight: bold;">
			<%=pq.getC6Xxxl() %>
		</td>
		<td style="text-align: center; font-weight: bold;" colspan="3">
			<%=pq.getC6Comment() %>
		</td>
	</tr>
</table>
</body>
</html>
